# Dollar Escape
Plain math:
$E = mc^2$
Escaped dollars:
$5 should render as $5.
this is a $100 phone
this is a \$100 phone
this is a $100-$200 phone
this is a \$100-\$200 phone
`\\$` should render as \\\$.
\\\$ should render as \\\$.
Inline code should stay literal: `\$` and `\\$`.
Fenced code should stay literal:
```
`ln[start:end]` slices the source file by 1-based line numbers. `hl[...]` highlights original source lines, so `hl[9:11,22]` highlights lines 9 through 11 and line 22 in the rendered snippet.
Copied
### Inline Code
Use `inline code` for short snippets.
### Indented Code Block
def hello_world():
print("Hello, world!")
### Fenced Code Block
```python
def hello_world():
print("Hello, world!")
```
### File Snippet Include
```markdown
{* ../demo/dollar-escape.md ln[1:24] hl[9:11,22] *}
```